<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../jquery-3.3.1.min.js"></script>
</head>
<body>
    <div>B1</div>
    <div>B2</div>
    <div>B3</div>
</body>
<script>
    $('div').css({'background':'yellow','width':'100px','height':'100px','float':'left'});
    $('div').mouseover(function(){
        $(this).css('background','blue');
    })
    $('div').mouseleave(function(){
        $(this).css('background','yellow')
    })
    $('div').click(function(){
        $(this).css('background','red')
    })
</script>
</html>